import { CHECC_API_CMS } from '@/constants/proxy'
import request from '@/utils/request'



// 审核提交
const checkApprove = (params: any = {}) => {
  return request.post(
    CHECC_API_CMS + `/xmzx/kyxmlxps/approvalApplication/submit`,
    params
  )
}

// 退回
const backApprove = (params: any = {}) => {
    return request.post(
      CHECC_API_CMS + `/xmzx/kyxmlxps/approvalApplication/returnfrom`,
      params
    )
  }

const secoreApprove = (params: any = {}) => {
    return request.post(
      CHECC_API_CMS + `/xmzx/kyxmlxps/zjcs/approval/preliminaryexamination/secore`,
      params
    )
  }

  // 获取专家列表
  const getExpertList = (params: any = {}) => {
    return request.get(
      CHECC_API_CMS + `/zjyrc/expert/listExpertIdAndNamet`,
      params
    )
  }

// 确认专家
  const confirmExpert = (params: any = {}) => {
    return request.post(
      CHECC_API_CMS + `/xmzx/kyxmlxps/zjcs/approval/preliminaryexamination/lPreliminaryExamination`,
      params
    )
  }

  const getSetUpExpertScore = (params: any = {}) => {
    return request.post(
      CHECC_API_CMS + `/xmzx/kyxmlxps/zjcs/approval/preliminaryexamination/getappliysecoreList`,
      params
    )
  }

  const getExpertInfo = (params: any = {}) => {
    
    return request.post(
      
      CHECC_API_CMS + `/xmzx/kyxmlxps/zjcs/approval/preliminaryexamination/getTotalList`,
      
      params
    )
  }

  // 同意立项

  const approveApi = (data: any = {}) => {
    
    return request.post(
      
      CHECC_API_CMS + `/xmzx/kyxmlxps/pzlx/approval/ratify/sumbit`,
      
      data
    )
  }


  // 评分

  const getRusultExpert = (data: any = {}) => {
    
    return request.post(
      
      CHECC_API_CMS + `/xmzx/kyxmlxps/zjcs/approval/preliminaryexamination/idgetExamination`,
      
      data
    )
  }

  

  


export { approveApi, backApprove, checkApprove, confirmExpert, getExpertInfo, getExpertList, getRusultExpert, getSetUpExpertScore, secoreApprove }

